//
//  isPublishImage.m
//  ZITHER
//
//  Created by weixin on 2018/12/4.
//  Copyright © 2018 weixn. All rights reserved.
//

#import "isPublishImage.h"

@implementation isPublishImage

+ (instancetype)defaultManager {
    
    static isPublishImage *manager = nil;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        manager = [[isPublishImage alloc]initializeFrame:CGRectMake(kScreenW/2.0-100, kScreenH-TabbarHeight-55, 200,55 ) contentMode:1];
        
        manager.image = [UIImage imageNamed:@"功能引导页_发布"];
        manager.backgroundColor = [UIColor clearColor];
        [[manager addTag]subscribeNext:^(id  _Nullable x) {
            manager.hidden = YES;
            //        imageV = nil;
            kUSER_isPublishImage.typeClose = YES;
        }];
        UserInfoManager *model = kUSER_INFO_MANAGER;
        model.isPublish = YES;
        [kUSER_INFO_MANAGER setUserInfoWithModel:model];
    });
    return manager;
}

@end
